package kr.saeildamil.androidstudy_second33;

import kr.saeildamil.androidstudy_second.R;
import android.app.Activity;
import android.os.Bundle;
import android.os.Environment;
import android.widget.MediaController;
import android.widget.VideoView;

public class VideoViewer extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch33_videoview);
		
		VideoView video=(VideoView) findViewById(R.id.ch33_videoView);
		String sd=Environment.getExternalStorageDirectory().getAbsolutePath();
		video.setVideoPath(sd+"/Movies/스트라이크 백 시즌3/Strike.Back.S03E01E02.avi");
		
		final MediaController mc=new MediaController(this);
		video.setMediaController(mc);
		video.postDelayed(new Runnable() {
			
			@Override
			public void run() {
				mc.show(0);
			}
		}, 100);
	}
}
